import service from '@/utils/request'
// @Tags WolfKillGame
// @Summary 创建狼人杀对局
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data body model.WolfKillGame true "创建狼人杀对局"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}"
// @Router /WKG/createWolfKillGame [post]
export const createWolfKillGame = (data) => {
  return service({
    url: '/WKG/createWolfKillGame',
    method: 'post',
    data
  })
}

// @Tags WolfKillGame
// @Summary 删除狼人杀对局
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data body model.WolfKillGame true "删除狼人杀对局"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /WKG/deleteWolfKillGame [delete]
export const deleteWolfKillGame = (params) => {
  return service({
    url: '/WKG/deleteWolfKillGame',
    method: 'delete',
    params
  })
}

// @Tags WolfKillGame
// @Summary 批量删除狼人杀对局
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除狼人杀对局"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /WKG/deleteWolfKillGame [delete]
export const deleteWolfKillGameByIds = (params) => {
  return service({
    url: '/WKG/deleteWolfKillGameByIds',
    method: 'delete',
    params
  })
}

// @Tags WolfKillGame
// @Summary 更新狼人杀对局
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data body model.WolfKillGame true "更新狼人杀对局"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /WKG/updateWolfKillGame [put]
export const updateWolfKillGame = (data) => {
  return service({
    url: '/WKG/updateWolfKillGame',
    method: 'put',
    data
  })
}

// @Tags WolfKillGame
// @Summary 用id查询狼人杀对局
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data query model.WolfKillGame true "用id查询狼人杀对局"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /WKG/findWolfKillGame [get]
export const findWolfKillGame = (params) => {
  return service({
    url: '/WKG/findWolfKillGame',
    method: 'get',
    params
  })
}

// @Tags WolfKillGame
// @Summary 分页获取狼人杀对局列表
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取狼人杀对局列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /WKG/getWolfKillGameList [get]
export const getWolfKillGameList = (params) => {
  return service({
    url: '/WKG/getWolfKillGameList',
    method: 'get',
    params
  })
}

// @Tags WolfKillGame
// @Summary 不需要鉴权的狼人杀对局接口
// @Accept application/json
// @Produce application/json
// @Param data query exampleReq.WolfKillGameSearch true "分页获取狼人杀对局列表"
// @Success 200 {object} response.Response{data=object,msg=string} "获取成功"
// @Router /WKG/getWolfKillGamePublic [get]
export const getWolfKillGamePublic = () => {
  return service({
    url: '/WKG/getWolfKillGamePublic',
    method: 'get',
  })
}
